﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TileEngine.items.pickaxes;
using TileEngine.items.tiles.material;

namespace TileEngine.items
{
    class ItemIndexer
    {
        public static List<Type> items = new List<Type>();
        public static void addItems(){
            items.Add(typeof(Pickaxe));
            items.Add(typeof(DirtItem));
            items.Add(typeof(StoneItem));
            items.Add(typeof(AdamentineItem));
            items.Add(typeof(BoronItem));
            items.Add(typeof(CoalItem));
            items.Add(typeof(CobaltItem));
            items.Add(typeof(CopperItem));
            items.Add(typeof(CromeItem));
            items.Add(typeof(GoldItem));
            items.Add(typeof(IronItem));
            items.Add(typeof(MithrilItem));
            items.Add(typeof(NikelItem));
            items.Add(typeof(PhosphorItem));
            items.Add(typeof(PlatinumItem));
            items.Add(typeof(SilverItem));
            items.Add(typeof(TitaniumItem));
        }
        public static Type getItem(int id)
        {
            return items[id];
        }
        public static int getId(Type item)
        {
            return items.IndexOf(item);
        }

    }
}
